import request from '@/utils/request'

// 查询TrainingAchievement列表
export function listTrainingAchievement(query) {
    return request({
        url: '/trainingAchievement/trainingAchievement/list',
        method: 'get',
        params: query
    })
}


//查询训练周名称集合
export function listWeekName(query) {
    return request({
        url: '/training/trainingDay/getWeekNamelist',
        method: 'get',
        params: query
    })
}


// 获取小组名称集合
export function getGroupNameList(query) {
    return request({
        url: '/trainingGroup/trainingGroup/getGroupNameList',
        method: 'get',
        params: query
    })
}

// 获取航道名称集合
export function listChannelName(query) {
    return request({
        url: '/trainingGroupChannel/trainingGroupChannel/getChannelNameList',
        method: 'get',
        params: query
    })
}



// 查询赛事姓名集合
export function listSportsmanName() {
    return request({
        url: '/training/sportsmanMatch/queryNameList',
        method: 'get',
    })
}


// 查询TrainingAchievement详细
export function getTrainingAchievement(id) {
    return request({
        url: '/trainingAchievement/trainingAchievement/' + id,
        method: 'get'
    })
}

// 新增TrainingAchievement
export function addTrainingAchievement(data) {
    return request({
        url: '/trainingAchievement/trainingAchievement',
        method: 'post',
        data: data
    })
}

// 修改TrainingAchievement
export function updateTrainingAchievement(data) {
    return request({
        url: '/trainingAchievement/trainingAchievement',
        method: 'put',
        data: data
    })
}

// 删除TrainingAchievement
export function delTrainingAchievement(id) {
    return request({
        url: '/trainingAchievement/trainingAchievement/' + id,
        method: 'delete'
    })
}

// 导出TrainingAchievement
export function exportTrainingAchievement(query) {
    return request({
        url: '/trainingAchievement/trainingAchievement/export',
        method: 'get',
        params: query
    })
}